package cn.bdqn.service.impl;

import cn.bdqn.dao.CourseMapper;
import cn.bdqn.pojo.Course;
import cn.bdqn.pojo.Employees;
import cn.bdqn.pojo.Pltable;
import cn.bdqn.service.CourseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CourseServiceImpl implements CourseService {
    @Autowired
    CourseMapper courseMapper;
    //根据ID查询
    @Override
    public List<Course> getList(Integer id) {
        return courseMapper.getList(id);
    }
//新增评论
    @Override
    public int add(Pltable pltable) {
        return courseMapper.add(pltable);
    }
//查询评论
    @Override
    public List<Pltable> getList1(Integer courseid) {
        return courseMapper.getList1(courseid);
    }

    @Override
    public List<Course> getList2() {
        return courseMapper.getList2();
    }

    @Override
    public Course getList3(Integer courseid) {
        return courseMapper.getList3(courseid);
    }

    @Override
    public Course getList4(Integer courseid) {
        return courseMapper.getList4(courseid);
    }

    @Override
    public int add1(Integer integer) {
        return courseMapper.add1(integer);
    }


}
